Optimal. Leaf size=133 \[ \frac{\sqrt [3]{b} p \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{2 \sqrt [3]{a}}-\frac{\log \left (c \left (a+b x^3\right )^p\right )}{x}-\frac{\sqrt [3]{b} p \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a}}-\frac{\sqrt{3} \sqrt [3]{b} p \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt [3]{a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0777852, antiderivative size = 133, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.438, Rules used = {2455, 292, 31, 634, 617, 204, 628} \[ \frac{\sqrt [3]{b} p \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{2 \sqrt [3]{a}}-\frac{\log \left (c \left (a+b x^3\right )^p\right )}{x}-\frac{\sqrt [3]{b} p \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a}}-\frac{\sqrt{3} \sqrt [3]{b} p \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt [3]{a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2455
Rule 292
Rule 31
Rule 634
Rule 617
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{\log \left (c \left (a+b x^3\right )^p\right )}{x^2} \, dx &=-\frac{\log \left (c \left (a+b x^3\right )^p\right )}{x}+(3 b p) \int \frac{x}{a+b x^3} \, dx\\ &=-\frac{\log \left (c \left (a+b x^3\right )^p\right )}{x}-\frac{\left (b^{2/3} p\right ) \int \frac{1}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{\sqrt [3]{a}}+\frac{\left (b^{2/3} p\right ) \int \frac{\sqrt [3]{a}+\sqrt [3]{b} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx}{\sqrt [3]{a}}\\ &=-\frac{\sqrt [3]{b} p \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a}}-\frac{\log \left (c \left (a+b x^3\right )^p\right )}{x}+\frac{\left (\sqrt [3]{b} p\right ) \int \frac{-\sqrt [3]{a} \sqrt [3]{b}+2 b^{2/3} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx}{2 \sqrt [3]{a}}+\frac{1}{2} \left (3 b^{2/3} p\right ) \int \frac{1}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx\\ &=-\frac{\sqrt [3]{b} p \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a}}+\frac{\sqrt [3]{b} p \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{2 \sqrt [3]{a}}-\frac{\log \left (c \left (a+b x^3\right )^p\right )}{x}+\frac{\left (3 \sqrt [3]{b} p\right ) \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1-\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a}}\right )}{\sqrt [3]{a}}\\ &=-\frac{\sqrt{3} \sqrt [3]{b} p \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt [3]{a}}-\frac{\sqrt [3]{b} p \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a}}+\frac{\sqrt [3]{b} p \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{2 \sqrt [3]{a}}-\frac{\log \left (c \left (a+b x^3\right )^p\right )}{x}\\ \end{align*}
Mathematica [C] time = 0.002632, size = 47, normalized size = 0.35 \[ \frac{3 b p x^2 \, _2F_1\left (\frac{2}{3},1;\frac{5}{3};-\frac{b x^3}{a}\right )}{2 a}-\frac{\log \left (c \left (a+b x^3\right )^p\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.317, size = 184, normalized size = 1.4 \begin{align*} -{\frac{\ln \left ( \left ( b{x}^{3}+a \right ) ^{p} \right ) }{x}}-{\frac{i\pi \,{\it csgn} \left ( i \left ( b{x}^{3}+a \right ) ^{p} \right ) \left ({\it csgn} \left ( ic \left ( b{x}^{3}+a \right ) ^{p} \right ) \right ) ^{2}-i\pi \,{\it csgn} \left ( i \left ( b{x}^{3}+a \right ) ^{p} \right ){\it csgn} \left ( ic \left ( b{x}^{3}+a \right ) ^{p} \right ){\it csgn} \left ( ic \right ) -i\pi \, \left ({\it csgn} \left ( ic \left ( b{x}^{3}+a \right ) ^{p} \right ) \right ) ^{3}+i\pi \, \left ({\it csgn} \left ( ic \left ( b{x}^{3}+a \right ) ^{p} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) -2\,\sum _{{\it \_R}={\it RootOf} \left ( a{{\it \_Z}}^{3}+b{p}^{3} \right ) }{\it \_R}\,\ln \left ( \left ( -4\,{{\it \_R}}^{3}a-3\,b{p}^{3} \right ) x+ap{{\it \_R}}^{2} \right ) x+2\,\ln \left ( c \right ) }{2\,x}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.01721, size = 311, normalized size = 2.34 \begin{align*} \frac{2 \, \sqrt{3} p x \left (-\frac{b}{a}\right )^{\frac{1}{3}} \arctan \left (\frac{2}{3} \, \sqrt{3} x \left (-\frac{b}{a}\right )^{\frac{1}{3}} + \frac{1}{3} \, \sqrt{3}\right ) - p x \left (-\frac{b}{a}\right )^{\frac{1}{3}} \log \left (b x^{2} - a x \left (-\frac{b}{a}\right )^{\frac{2}{3}} - a \left (-\frac{b}{a}\right )^{\frac{1}{3}}\right ) + 2 \, p x \left (-\frac{b}{a}\right )^{\frac{1}{3}} \log \left (b x + a \left (-\frac{b}{a}\right )^{\frac{2}{3}}\right ) - 2 \, p \log \left (b x^{3} + a\right ) - 2 \, \log \left (c\right )}{2 \, x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.24798, size = 186, normalized size = 1.4 \begin{align*} -\frac{1}{2} \, b p{\left (\frac{2 \, \left (-\frac{a}{b}\right )^{\frac{2}{3}} \log \left ({\left | x - \left (-\frac{a}{b}\right )^{\frac{1}{3}} \right |}\right )}{a} + \frac{2 \, \sqrt{3} \left (-a b^{2}\right )^{\frac{2}{3}} \arctan \left (\frac{\sqrt{3}{\left (2 \, x + \left (-\frac{a}{b}\right )^{\frac{1}{3}}\right )}}{3 \, \left (-\frac{a}{b}\right )^{\frac{1}{3}}}\right )}{a b^{2}} - \frac{\left (-a b^{2}\right )^{\frac{2}{3}} \log \left (x^{2} + x \left (-\frac{a}{b}\right )^{\frac{1}{3}} + \left (-\frac{a}{b}\right )^{\frac{2}{3}}\right )}{a b^{2}}\right )} - \frac{p \log \left (b x^{3} + a\right )}{x} - \frac{\log \left (c\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]